package org.paramita.trader;

import org.paramita.tradestrategy.*;

public class ArbitrageUser {

	protected ArbitrageUser() {
		
		
	}

	private static ArbitrageUser _instance = null;

	public static ArbitrageUser getInstance()
	{
		if(null==_instance){
			_instance = new ArbitrageUser();
		}
		return _instance;
		
	}

	public static void main(String args[])
	{
	
		StrategyConfig config = getInstance().configureStrategy() ;
		TradingStrategy strategy;
		try {
			strategy = StrategyManager.getInstance().createStrategy(config);
			strategy.run();
			
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
	}

	private StrategyConfig configureStrategy() {
		ArbitrageStrategyConfig config = new ArbitrageStrategyConfig();
		config.setStrategy(0);//TODO Need to pass the strategy as a parameter 
		return config;
	}

		
}

